<li class="list-group-item tree-select-item" data-id="{{id}}" data-name="{{name}}" data-type="{{type}}" data-url="{{url}}">
  <label>
    <input type="radio" name="parentId" {{equal upid id 'checked'}} value="{{id}}" style="margin-right: 1em"/>
    <span class="badge bg-primary" style="margin-left:{{multiply depth 14}}px;">{{id}}</span>
    <span class="badge bg-info">{{type}}</span>
    <span class="badge bg-secondary">{{name}}</span>
    <span class="badge bg-success">{{url}}</span>
  </label>
</li>
{{#each children}}
  {{> tree-node this depth=(summation ../depth 1) upid=../upid}}
{{/each}}